package com.iraeta.service.sys;

import com.iraeta.entity.User;

import java.util.List;

public interface UserService {
    public void addUser(User user,int orgId);
    public void addKeHu(User user);
    public void deleteUser(int id);
    public void updateUser(User user);
    public User getUser(int id);
    public User getUserByWxuid(String wxuid);

    public User getUserByPhone(String phone);
    public User getUserByUserName(String userName, String pwd);
    public List<User> listUserByName(String name);
    public List<User> listKeHuByName(String name);
    public List<User> listOrgUserByName(Integer orgId, String name);

    /*user role相关  user set role*/
    public void saveUserRole(int userId, List<Integer> roleList);

    /*user role相关  role set user*/
    public List<User> listUserByRoleId(int roleId);

    /*user permission相关*/
    public List<Integer> listUserPermissions(int userId);
}
